package com.nidu.demo.role.dto;

import com.nidu.demo.base.BaseTenantCO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Set;

/**
 * 角色客户端对象
 *
 * @author auto
 */
@Data
@Schema(description = "角色客户端对象")
@EqualsAndHashCode(callSuper = true)
public class RoleCO extends BaseTenantCO {
    /**
     * 主键ID
     */
    @Schema(description = "主键ID", example = "主键ID")
    private Long id;

    /**
     * 角色名称
     */
    @Schema(description = "角色名称", example = "系统管理员")
    private String roleName;

    /**
     * 角色编码
     */
    @Schema(description = "角色编码", example = "admin")
    private String roleCode;

    /**
     * 角色类型
     */
    @Schema(description = "角色类型(1:系统,2:自定义)", example = "1")
    private Integer roleType;

    /**
     * 数据权限范围
     */
    @Schema(description = "数据权限范围(1:全部数据权限,2:指定部门数据权限,3:部门数据权限,4:部门及以下数据权限,5:仅本人)", example = "1")
    private Integer dataScope;

    /**
     * 数据权限范围
     */
    @Schema(description = "数据权限范围(指定部门ID数组)", example = "1")
    private Set<Long> dataScopeDeptIds;

    /**
     * 描述
     */
    @Schema(description = "描述", example = "系统管理员角色")
    private String remark;

    @Schema(description = "排序号", example = "0")
    private Integer sortOrder;

    @Schema(description = "状态(0:禁用,1:启用)", example = "1")
    private Integer status;
} 